package com.nineclock.attendance.dto;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @TableName at_overtime_rule
 */
@TableName(value ="at_overtime_rule")
@Data
public class AttendOvertimeRuleDTO implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 公司id
     */
    private Long companyId;

    /**
     * 加班规则名称
     */
    private String name;

    /**
     * 预警单位 1每日，2每周，3每月
     */
    private Integer alarmUnit;

    /**
     * 风险预警-累计超过小时数
     */
    private Integer alarmHours;

    /**
     * 
     */
    private String attendGroupIds;

    private List<AttendGroupDTO> attendGroups;

    private List<AttendOvertimeRuleDetailDTO> ruleContent;

    private AttendOvertimeRuleDetailDTO playDay;

    private AttendOvertimeRuleDetailDTO workDay;

    private AttendOvertimeRuleDetailDTO holiday;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}